using System;
using System.Linq;
using DomainModel.Entities;

namespace Service.Abstract
{
    public interface IBaseService<TEntity> where TEntity : class, IEntityWithUser
    {
        IQueryable<TEntity> GetAll();
        IQueryable<TEntity> GetAllByUserId(Guid userId);
        void Add(TEntity entity, Guid userId);
        void Save(TEntity entity, Guid userId);
        void Delete(TEntity entity);
    }
}